package com.chinasofti.ref;

public class Student {
    private String name;
    private int age;

    public Student(String name, int age) {
        System.out.println("name=" + name+"age="+age);
        System.out.println("public...有参构造方法");
    }

    private Student(String name) {
        System.out.println("name=" + name);
        System.out.println("private...有参构造方法");
    }

    public Student() {
        System.out.println("无参构造方法");
    }
}